package st.business.tepth.business.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * @author zhangyu
 * @date 2019/3/5
 */
public class BusNumberBean implements Parcelable {

    /**
     * license_no : 渝BT2126
     * record_date : 2018-01-0300:00:00
     * job_process_status : 1
     * vehicle_model_no : T-5678
     * user_name : 李四
     * vehicle_no : 2222
     * organization_id : 4
     * line_no : 114
     * mobile_no : 13985621569
     * line_name : 大坪-朱家湾
     * id : 4
     */

    private String license_no;
    private String record_date;
    private int job_process_status;
    private String vehicle_model_no;
    private String user_name;
    private String vehicle_no;
    private int organization_id;
    private String line_no;
    private String mobile_no;
    private String line_name;
    private String statusName;
    private List<PersonBean> completeUsers;
    private int status;

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    private int id;
    //1小修 2保养
    private int type;

    public List<PersonBean> getCompleteUsers() {
        return completeUsers;
    }

    public void setCompleteUsers(List<PersonBean> completeUsers) {
        this.completeUsers = completeUsers;
    }

    public String getStatusName() {
        return statusName;
    }

    public void setStatusName(String statusName) {
        this.statusName = statusName;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getLicense_no() {
        return license_no;
    }

    public void setLicense_no(String license_no) {
        this.license_no = license_no;
    }

    public String getRecord_date() {
        return record_date;
    }

    public void setRecord_date(String record_date) {
        this.record_date = record_date;
    }

    public int getJob_process_status() {
        return job_process_status;
    }

    public void setJob_process_status(int job_process_status) {
        this.job_process_status = job_process_status;
    }

    public String getVehicle_model_no() {
        return vehicle_model_no;
    }

    public void setVehicle_model_no(String vehicle_model_no) {
        this.vehicle_model_no = vehicle_model_no;
    }

    public String getUser_name() {
        return user_name;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }

    public String getVehicle_no() {
        return vehicle_no;
    }

    public void setVehicle_no(String vehicle_no) {
        this.vehicle_no = vehicle_no;
    }

    public int getOrganization_id() {
        return organization_id;
    }

    public void setOrganization_id(int organization_id) {
        this.organization_id = organization_id;
    }

    public String getLine_no() {
        return line_no;
    }

    public void setLine_no(String line_no) {
        this.line_no = line_no;
    }

    public String getMobile_no() {
        return mobile_no;
    }

    public void setMobile_no(String mobile_no) {
        this.mobile_no = mobile_no;
    }

    public String getLine_name() {
        return line_name;
    }

    public void setLine_name(String line_name) {
        this.line_name = line_name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.license_no);
        dest.writeString(this.record_date);
        dest.writeInt(this.job_process_status);
        dest.writeString(this.vehicle_model_no);
        dest.writeString(this.user_name);
        dest.writeString(this.vehicle_no);
        dest.writeInt(this.organization_id);
        dest.writeString(this.line_no);
        dest.writeString(this.mobile_no);
        dest.writeString(this.line_name);
        dest.writeString(this.statusName);
        dest.writeInt(this.status);
        dest.writeInt(this.id);
        dest.writeInt(this.type);
    }

    public BusNumberBean() {
    }

    protected BusNumberBean(Parcel in) {
        this.license_no = in.readString();
        this.record_date = in.readString();
        this.job_process_status = in.readInt();
        this.vehicle_model_no = in.readString();
        this.user_name = in.readString();
        this.vehicle_no = in.readString();
        this.organization_id = in.readInt();
        this.line_no = in.readString();
        this.mobile_no = in.readString();
        this.line_name = in.readString();
        this.statusName = in.readString();
        this.status = in.readInt();
        this.id = in.readInt();
        this.type = in.readInt();
    }

    public static final Parcelable.Creator<BusNumberBean> CREATOR = new Parcelable.Creator<BusNumberBean>() {
        @Override
        public BusNumberBean createFromParcel(Parcel source) {
            return new BusNumberBean(source);
        }

        @Override
        public BusNumberBean[] newArray(int size) {
            return new BusNumberBean[size];
        }
    };
}
